package controller;

import pojo.Save;
import view.BankSystemMenu;

import java.io.IOException;
import java.util.HashMap;
import java.util.Scanner;

public class BankSystem {
    HashMap<String, Save>bankdb;
    Scanner input;
    public BankSystem(){
        bankdb =new HashMap<>();
        input =new Scanner(System.in);

    }
public  void runBankSystem() throws IOException{
        String flag="N";
        do{
            BankSystemMenu.showMenu();
            String userInput=input.next();
            switch (userInput){
                case "1"->{
                    createAccount();
                }
                case "2"->{
                    deleteAccount();

                }
                case "3"->{
                    saveMoney();
                }
                case "4" ->{
                    getMoney();
                }


            }
        }
}
}
